package entity;

import java.util.Date;

public class News {
	private int id;
	private String title;
	private String content;
	private Date publishdate;
	private int userid;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getPublishdate() {
		return publishdate;
	}
	public void setPublishdate(Date publishdate) {
		this.publishdate = publishdate;
	}
	public int getUserid() {
		return userid;
	}
	public void setUserid(int userid) {
		this.userid = userid;
	}
	public News() {
		super();
		// TODO Auto-generated constructor stub
	}
	public News(int id, String title, String content, Date publishdate, int userid) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.publishdate = publishdate;
		this.userid = userid;
	}
	public News(String title, String content, Date publishdate, int userid) {
		super();
		this.title = title;
		this.content = content;
		this.publishdate = publishdate;
		this.userid = userid;
	}

	
}
